package com.xinzhi.controller;

import com.xinzhi.service.IUseroperationService;
import com.xinzhi.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UseroperationController {
    @Autowired
    private IUseroperationService useroperationService;

    /**
     * 通过手机号获取用户登录时间
     * @param phone
     * @return
     */
    @RequestMapping("/getTime")
    public Result getTime(String phone){
        return useroperationService.getUseroperation(phone);
    }
}
